﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using Utility.Inspector.ReorderableList;

namespace Utility.DataStructure
{
	[CustomPropertyDrawer (typeof (DictionaryAttribute))]
	[CustomPropertyDrawer (typeof (StringStringDict))]
	[CustomPropertyDrawer (typeof (StringBoolDict))]
	[CustomPropertyDrawer (typeof (StringFloatDict))]
	[CustomPropertyDrawer (typeof (StringIntDict))]
	[CustomPropertyDrawer (typeof (StringObjectDict))]
	public class SerializableDictionaryDrawer : PropertyDrawer
	{
		//SerializedProperty

		public override void OnGUI (Rect position, SerializedProperty property, GUIContent label)
		{
			EditorGUI.BeginProperty (position, label, property);


			EditorGUI.EndProperty ();
		}

		public override float GetPropertyHeight (SerializedProperty property, GUIContent label)
		{
			float h_line = EditorGUIUtility.singleLineHeight;
			return base.GetPropertyHeight (property, label);
		}
	}
}